<?php
/**
 * Created by PhpStorm.
 * User: Raytine
 * Date: 2019/11/21
 * Time: 0:26
 */

Route::post('login', 'AuthController@login');
Route::post('logout', 'AuthController@logout');
Route::post('refresh', 'AuthController@refresh');
Route::post('register', 'AuthController@register');
Route::post('sendVerifyCode','SendMessageController@send');
Route::get("/city","CityController@index"); //城市列表
Route::get("/defaultCity","CityController@defaultCity");//得到默认城市
Route::get("/area","AreaController@index");//面积范围筛选列表

Route::get("/city/{city_id}","CityController@detail");//城市下级区域
Route::get("/workshop","WorkshopController@index"); //厂区列表 搜索查询
Route::get("/workshopZS/{type}","WorkshopZSController@index"); //厂区列表 搜索查询
Route::get("/workshops/{workshop_id}",'WorkshopController@detail');//厂区详情
Route::get("/news",'NewsController@index');//新闻
Route::get("/newsZs",'NewsController@zsIndex');//新闻
Route::get("/news/{id}",'NewsController@detail');
Route::get("/newsZs/{id}",'NewsController@zsDetail');
Route::get("/about",'AboutController@index');//关于我们
Route::get("/park",'ParkController@index');//园区列表
Route::get('/parkArea','ParkController@area');//园区面积
Route::get("/park/{id}",'ParkController@detail');//园区详情
Route::get("/channel/{id}",'ParkController@channel');//园区频道
Route::get("/website",'WebsiteController@index');//网站信息
Route::get('/workshop_recommend','WorkshopController@workshopRecommend');//获取推荐的盘源
Route::post('/agentCounsel','AgentCounseController@create');//提交咨询